package com.example.wxtest.controller;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.*;

@RestController
public class TestApi {
    @GetMapping("/getData")
//    @Async
    public String getList() {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return "123";
    }
    @GetMapping("/getData1")
    public String getList1() {
        for (int i = 0; i < 100000; i++) {
            for (int j = 0;j < 10000; j++) {
            }
        }
        return "123";
    }
}